import request from '@/utils/request'

// 查询库存记录列表
export function listInventoryLog(query) {
  return request({
    url: '/wms/inventoryLog/list',
    method: 'get',
    params: query
  })
}

// 初始化
export function initBean() {
    return request({
        url: '/wms/inventoryLog/initBean',
        method: 'post'
    })
}

// 查询库存记录详细
export function getInventoryLog(id) {
  return request({
    url: '/wms/inventoryLog/' + id,
    method: 'get'
  })
}

// 新增库存记录
export function addInventoryLog(data) {
  return request({
    url: '/wms/inventoryLog',
    method: 'post',
    data: data
  })
}

// 修改库存记录
export function updateInventoryLog(data) {
  return request({
    url: '/wms/inventoryLog',
    method: 'put',
    data: data
  })
}

// 删除库存记录
export function delInventoryLog(id) {
  return request({
    url: '/wms/inventoryLog/' + id,
    method: 'delete'
  })
}
